package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-18-21:31
 */
@Mapper
public interface ProductSkuMapper {
    void deleteByProductId(Long ProductId);

    void saveBatch(@Param("productSkuList") List<ProductSku> productSkuList);

    List<ProductSku> selectByProductId(Long id);

    void updateById(ProductSku productSku);

    void updateStatus(@Param("id")Long id,@Param("status") Integer status);

}
